package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2020-06-11
 */
@TableName("app_ads")
public class AppAds extends Model<AppAds> {

    private static final long serialVersionUID = 1L;

    /**
     * 广告id
     */
    @TableId(value = "ad_id", type = IdType.AUTO)
    private Integer adId;
    /**
     * 广告名称
     */
    @TableField("ad_name")
    private String adName;
    /**
     * 广告文字内容
     */
    private String content;
    /**
     * 广告位置 1.banner 2.开屏 3.弹出窗口
     */
    @TableField("loc_type")
    private Integer locType;
    /**
     * 广告分类 1.活动推广 2.用户留存 3.上新通知 4.系统维护
     */
    @TableField("ad_type")
    private Integer adType;
    /**
     * 广告状态 0.未激活 1.已激活
     */
    @TableField("status")
    private Integer status;
    /**
     * 广告平台 1-android,2-ios,3-window,4-mac,5-web
     */
    private Integer platform;
    /**
     * 广告图片url
     */
    @TableField("ad_image")
    private String adImage;
    /**
     * 广告生效时间
     */
    @TableField("start_time")
    private Date startTime;
    /**
     * 广告有效期结束时间
     */
    @TableField("end_time")
    private Date endTime;

    @TableField("jump_url")
    private String jumpUrl;

    @TableField("target_user_type")
    private String targetUserType;

    @TableField("update_time")
    private Date updateTime;


    public Integer getAdId() {
        return adId;
    }

    public void setAdId(Integer adId) {
        this.adId = adId;
    }

    public String getAdName() {
        return adName;
    }

    public void setAdName(String adName) {
        this.adName = adName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLocType() {
        return locType;
    }

    public void setLocType(Integer locType) {
        this.locType = locType;
    }

    public Integer getAdType() {
        return adType;
    }

    public void setAdType(Integer adType) {
        this.adType = adType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getPlatform() {
        return platform;
    }

    public void setPlatform(Integer platform) {
        this.platform = platform;
    }

    public String getAdImage() {
        return adImage;
    }

    public void setAdImage(String adImage) {
        this.adImage = adImage;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }

    public String getTargetUserType() {
        return targetUserType;
    }

    public void setTargetUserType(String targetUserType) {
        this.targetUserType = targetUserType;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.adId;
    }

    @Override
    public String toString() {
        return "AppAds{" +
        "adId=" + adId +
        ", adName=" + adName +
        ", content=" + content +
        ", locType=" + locType +
        ", adType=" + adType +
        ", status=" + status +
        ", platform=" + platform +
        ", adImage=" + adImage +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        "}";
    }
}
